import request from "@/utils/request";

// 房地产销售趋势分析-影响因子重要程度排行和顶部信息-柱形图-bar
export const getSupplyDemandAanalysisSalesTrends = (params: any) => {
    return request({
        url: "/screen/supplyDemand/analysisSalesTrends",
        method: "post",
        data: params,
    });
};

// 房地产销售趋势分析-房地产新增销量价格走势-折线图-line
export const getSupplyDemandAnalyzeSalesPriceTrend = (params: any) => {
    return request({
        url: "/screen/supplyDemand/analyzeSalesPriceTrend",
        method: "post",
        data: params,
    });
};

// 房地产销售趋势分析-新增销售情况统计-柱形图-bar
export const getSupplyDemandNewHouseSales = (params: any) => {
    return request({
        url: "/screen/supplyDemand/newHouseSales",
        method: "post",
        data: params,
    });
};

// 房地产销售趋势分析-房屋情况统计-雷达图-radar
export const getSupplyDemandSalesHouseAnalysis = (params: any) => {
    return request({
        url: "/screen/supplyDemand/salesHouseAnalysis",
        method: "post",
        data: params,
    });
};

// 房地产销售趋势分析-价格分布-盒须图-boxplot
export const getSupplyDemandSalesPriceAnalysis = (params: any) => {
    return request({
        url: "/screen/supplyDemand/salesPriceAnalysis",
        method: "post",
        data: params,
    });
};

// 房地产销售趋势分析-面积分布-盒须图-boxplot
export const getSupplyDemandSalesAreaAnalysis = (params: any) => {
    return request({
        url: "/screen/supplyDemand/salesAreaAnalysis",
        method: "post",
        data: params,
    });
};

// 房地产销售情况
export const getSupplyDemandSalesAnalysis = (params: any) => {
    return request({
        url: "/screen/supplyDemand/salesAnalysis",
        method: "post",
        data: params,
    });
};

// 房地销售走势
export const getSupplyDemandAnalyzeSalesMovement = (params: any) => {
    return request({
        url: "/screen/supplyDemand/analyzeSalesMovement",
        method: "post",
        data: params,
    });
};

// 房地产供需情况
export const getSupplyDemandAnalyzeHouseSupply = (params: any) => {
    return request({
        url: "/screen/supplyDemand/analyzeHouseSupply",
        method: "post",
        data: params,
    });
};

// 房地产供需走势
export const getSupplyDemandRealEstateSupplyDemandTrend = (params: any) => {
    return request({
        url: "/screen/supplyDemand/realEstateSupplyDemandTrend",
        method: "post",
        data: params,
    });
};

// 影响因子排名-总的-根据参数不同可获取指定
export const getSupplyDemandRankImpactFactors = (params: any) => {
    return request({
        url: "/screen/supplyDemand/rankImpactFactors",
        method: "post",
        data: params,
    });
};

// 房地产供需矛盾分析-房地产新增供需走势
export const getSupplyDemandTrendNewSupplyDemand = (params: any) => {
    return request({
        url: "/screen/supplyDemand/trendNewSupplyDemand",
        method: "post",
        data: params,
    });
};

// 房地产停缓建项目交付趋势-顶部top和扇形图
export const getSupplyDemandStopBuild = (params: any) => {
    return request({
        url: "/screen/supplyDemand/stopBuild",
        method: "post",
        data: params,
    });
};

// 房地产停缓建项目交付趋势-房地停缓建项目走势
export const getSupplyDemandAnalyzeRealEstateTrend = (params: any) => {
    return request({
        url: "/screen/supplyDemand/analyzeRealEstateTrend",
        method: "post",
        data: params,
    });
};

// 房地产各区库存及去化周期情况统计-商品房去化周期-scatter图
export const getSupplyDemandAnalyzeMacroeconomic = (params: any) => {
    return request({
        url: "/screen/supplyDemand/analyzeMacroeconomic",
        method: "post",
        data: params,
    });
};

// 房地产各区库存及去化周期情况统计-顶部topInfo
export const getSupplyDemandGetREInventoryCycle = (params: any) => {
    return request({
        url: "/screen/supplyDemand/getREInventoryCycle",
        method: "post",
        data: params,
    });
};

// 房地产各区库存及去化周期情况统计-房地产销量价格走势
export const getSupplyDemandGetREInventoryRight = (params: any) => {
    return request({
        url: "/screen/supplyDemand/getREInventoryRight",
        method: "post",
        data: params,
    });
};

// 根据选择城市获得城市下拉选-各模块顶部筛选
export const getSupplyDemandGetRegion = (params: any) => {
    return request({
        url: "/screen/supplyDemand/getRegion",
        method: "post",
        data: params,
    });
};

// 房地产新增供需分布-散点图
export const transanalysisListingSituationAnalysis = (params: any) => {
    return request({
        url: "/screen/transanalysis/listingSituationAnalysis",
        method: "post",
        data: params,
    });
};